// 装饰器抽象类
public abstract class FarmMachineDecorator extends FarmMachine {
    protected FarmMachine farmMachine;

    public FarmMachineDecorator(FarmMachine farmMachine) {
        this.farmMachine = farmMachine;
    }

    @Override
    public void work() {
        farmMachine.work();
    }
}